package com.dyit.springcloud.feign.api;

import com.dyit.springcloud.common.dto.HttpResp;
import com.dyit.springcloud.feign.hystrix.MyFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "springcloud-book",path = "/api/book",fallbackFactory = MyFallbackFactory.class)
public interface FeignApi {
    @RequestMapping("/findAll")
    HttpResp feignFindAll();
}
